package com.treeman.user.dao;

import java.util.List;
import java.util.Set;

import com.treeman.friend.Invitation;
import com.treeman.user.User;

public interface UserDao {

	public Long addUser(User user);

	public User getUserById(Long id);

	public User getUserByUsername(String username);

	public void updateUser(User user);

	public List<User> findUsers(String firstname, String lastname,
			String username);

	public Set<User> getUserFriends(String username);

	public Set<Invitation> getReceivedInvitations(String username);

	public void removeInvitation(User from, User to);

	public Boolean isAlreadyInvited(User user1, User user2);
}
